from django.db import models

# Create your models here.
class UserInfo(models.Model):
    username = models.CharField('用户名', max_length=20, unique=True)
    email = models.EmailField('邮箱', unique=True)
    password = models.CharField('密码', max_length=128)
    avatar = models.CharField('用户头像', max_length=255, default='/static/picture/avatar1.jpeg')
    create_time = models.DateTimeField('创建时间', auto_now_add=True)
    is_admin = models.BooleanField('管理权限', default=False)
    is_staff = models.BooleanField('职员权限', default=False)
